import { myorderList,orderList } from "@/api/api";
export default {
  name: 'topayment',
  components: {}, 
  props: [],
  data () {
    return {
      //收货人信息 orderConsignee
      orderConsignee: [],
      //供应商付费 orderSupplier
      orderSupplier: [],
      //供应商付费 orderTable
      orderTable: [],
      list: []
    }
  },
  computed: {

  },
  created(){
    this._myorderList();
    this._orderList()
  },
  mounted () {

  },
  methods: {
    //订单编号
    _orderList(){
      let params = {
        params: {}
      }
      orderList(params).then(res => {
        console.log(2222,res);
        this.list = res.data.slice(0,1);
      })
    },
    //我的订单付款、物流信息数据
    _myorderList(){
      let params = {
        params: {}
      }
      myorderList(params).then(res => {
        // console.log(res)
        //收货人信息 orderConsignee
        this.orderConsignee = res.data.list.slice(0,1);
        //供应商付费 orderSupplier
        this.orderSupplier = res.data.Odata.slice(0,1);
        //供应商付费 orderTable
        this.orderTable = res.data.sdata.slice(0,1);
      })
    }
  }
}
